﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RSSReader.DAL
{
  public class Subscription
  {
    [Key, Column(Order = 0)]
    public string UserId { get; set; }
    public virtual ApplicationUser User { get; set; }

    [Key, Column(Order = 1)]
    public int SourceId { get; set; }
    public virtual Source Source { get; set; }

    //[Required]
    [Column(TypeName = "nvarchar")]
    [MaxLength(200)]
    public string Title { get; set; }

    public bool IsSubscribe { get; set; }
  }
}